<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:"张三",
            age:18,
            gender:"男",
            hobbies:["吃","喝","玩"]
        }

        let a =JSON.stringify(obj)
        console.log(a)
        let b = JSON.parse(a)
        console.log(b)
        obj.name="李四"
        obj.hobbies[0]=1
        console.log(obj)
        console.log(b)


        // symbol

        let q = Symbol("你好")
        let q1 = Symbol("name")

        let o = {
            [q1]:"小红",
            [q]:"啊"
        }

        console.log(o)
        console.log(o[q1])

    </script>
</body>
</html>